﻿@model RedSand.Site.Models.ProductTabInfo
<div id="edit_tab_dialog" title="Thêm tab" class="box dialog">
    @using (Ajax.BeginForm(new AjaxOptions { UpdateTargetId = "tabs-wrap", LoadingElementId = "loading-panel", OnFailure = "ajax_failure", OnSuccess = "create_tab_success" }))
    {
        <div class="dialog-content">
            @Html.HiddenFor(model => model.ProductID)
            <div class="form-cell">
                <label>
                    Tiêu đề</label>
                @Html.TextBoxFor(model => model.Title, new { id = "tab-title" })
            </div>
            <div class="form-cell none-float">
                <label>
                    Nội dung</label>
                @Html.TextAreaFor(model => model.Content, new { id = "tab-content" })
            </div>
        </div>
        <div class="dialog-footer">
            <input type="submit" value="@Html.Translate("Save")" />
            <input type="button" value="@Html.Translate("Cancel")" onclick="$('#edit_tab_dialog').dialog('close')" />
        </div>
    }
</div>
